package com.sc.VenusQueryBeta.adapter.account.zhuanma;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseViewHolder;
import com.hengjun.kingstar.sdk.utils.StringUtils;
import com.sc.VenusQueryBeta.R;
import com.sc.VenusQueryBeta.adapter.BaseCompatAdapter;
import com.sc.VenusQueryBeta.model.bean.account.zhuanma.ZhuanMaList2;

import java.util.List;

/**
 * 賬戶信息適配器
 */

public class Zhuanma02Adapter extends BaseCompatAdapter<ZhuanMaList2.SunList,BaseViewHolder> {
    public Zhuanma02Adapter(int layoutResId, @Nullable List<ZhuanMaList2.SunList> data) {
        super(layoutResId, data);
    }

    public Zhuanma02Adapter(int item_zhuanma01) {
        super(item_zhuanma01);
    }

    @Override
    protected void convert(BaseViewHolder helper, ZhuanMaList2.SunList item) {
        helper.setText(R.id.tv_id,item.getClientid());//戶口
        String d =item.Chipsnum.substring(0, item.Chipsnum.lastIndexOf("."));//截取小數點前的內容
        helper.setText(R.id.tv_money, d+mContext.getResources().getString(R.string.wan));//金額
    }

}

